package com.wx.serviceImpl;

import com.wx.daoImpl.UserDaoImpl;
import com.wx.model.Users;
import com.wx.service.UserService;

public class UserServiceImpl implements UserService{

	@Override
	public Users login(Users user) throws Exception {
		return new UserDaoImpl().login(user);
	}

	@Override
	public boolean regist(Users user) throws Exception {
		return new UserDaoImpl().regist(user);
	}

	@Override
	public void registAll(Users user) throws Exception {
		new UserDaoImpl().registAll(user);
	}

	@Override
	public boolean checkUsername(String username) throws Exception {
		return new UserDaoImpl().checkUsername(username);
	}

}
